package com.haoshuang.zhouzhoubang.ui.page.welfare.insure

import com.haoshuang.zhouzhoubang.databinding.ItemInsureWelfareBinding
import com.haoshuang.zhouzhoubang.model.bean.InsureApplyRecordBean
import com.haoshuang.zhouzhoubang.model.bean.InsureUseRecordBean
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


/**
 * 
 */
class InsureWelfareAdapter(data: MutableList<InsureUseRecordBean>) : BaseBindingQuickAdapter<InsureUseRecordBean, ItemInsureWelfareBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: InsureUseRecordBean?) {
        holder.getViewBinding<ItemInsureWelfareBinding>().apply {
            tvName.text = item?.real_name
            tvPhone.text = item?.mobile
            tvTime.text = "${item?.start_time}至${item?.end_time}"
        }
    }

}